@import "https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css";

/* light-style */
:root {
    --tableBorderRadius: 10px;
    --themeFontColor: #047db6;
    /* --themeColor: #38a3d5; */
    --themeColor: #169bd5;
    --sideBarItemColor: linear-gradient(to top, #e4e4e4, #fff);
    --sideBarBorderColor: transparent;
    --sideBarBorderStyle: solid;
    --navBarColor: linear-gradient(to top, #047cb3, #26a3de);
}
/* dark-style */
:root {
  --themeColor: #20222a;
  --themeHoverColor: #16181d;
  --themeFontColor: var(--themeColor);
  --navBarColor: #222;
  --sideBarItemColor: var(--themeColor);
  --sideBarBorderColor:  var(--themeColor);
  --sideBarFontColor: #ddd;
  --sideBarBorderStyle: none;
  --sideBarActiveColor: #009688;
  --rectBtnColor: #909399;
}

* {
    padding: 0;
    margin: 0;
}

html,
body {
    height: 100%;
}

#app {
    display: flex;
    flex-flow: column nowrap;
    height: 100%;
}

main {
    display: flex;
    flex-grow: 1;
    overflow: auto;
}

main .sidebar-all {
    position: relative;
}

main .sidebar-all .toggle-button {
  position: absolute;
  right: -43px;
  background-color: var(--rectBtnColor);
  color: #fff;
  line-height: 43px;
  width: 43px;
  text-align: center;
  letter-spacing: 0.2em;
  cursor: pointer;
  z-index: 2;
}
  
main .sidebar-all .toggle-button i {
  vertical-align: -1px;
  transform: rotateZ(180deg);
}

nav.navbar {
    border-radius: 0;
    margin-bottom: 0;
}

nav.top-nav {
    background-image: var(--navBarColor);
    background-color: var(--navBarColor);
    border: none;
}

nav.navbar-inverse .navbar-brand {
    color: #fff;
}

nav.top-nav .navbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav.top-nav .navbar-header:before,
nav.top-nav .navbar-header:after {
    content: none;
}

nav.top-nav .navbar-header .headimg figure {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #efefef;
    padding: 8px;
}

nav.top-nav .navbar-header .headimg figure > img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #e5dce0;
}

nav.top-nav .navbar-header .headimg figure > figcaption {
    margin-left: 10px;
}

nav.top-nav a {
    text-decoration: none;
}

nav.top-nav .logined {
    align-items: center;
    display: none;
    width: 80px;
    justify-content: space-between;
}

nav.top-nav .unlogined {
    display: none;
    color: var(--themeFontColor);
    color: #fff;
}

nav.top-nav .unlogined button {
    color: #fff;
}

nav.top-nav .logined .message {
    letter-spacing: -4px;
}

nav.top-nav .logined > div > i {
    font-size: 20px;
    color: #fff;
}

nav.top-nav .logined .message .badge {
    display: inline-block;
    padding: 0;
    width: 16px;
    font-size: 12px;
    line-height: 16px;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: 13px;
    background-color: #f56c6c;
    border-radius: 50%;
    letter-spacing: normal;
}

nav.top-nav .logined .headimg img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #e5dce0;
    vertical-align: middle;
}

nav.top-nav .logined .headimg .dropdown-menu {
    left: -96px;
    top: 40px;
    padding: 0;
    min-width: 140px;
}

nav.top-nav .logined .headimg .dropdown-menu li {
  text-align: center;
}

nav.top-nav .logined .headimg .dropdown-menu li:hover {
  background-color: var(--sideBarActiveColor);
}

nav.top-nav .logined .headimg .dropdown-menu li:hover button {
  color: var(--sideBarFontColor) !important;
}

nav.top-nav .logined .headimg .dropdown-menu .btn-link {
    outline: none;
    color: var(--themeFontColor);
    text-decoration: none;
}

nav.top-nav .logined .headimg .dropdown-menu .btn-link:hover,
nav.top-nav .logined .headimg .dropdown-menu .btn-link:focus {
    color: var(--themeFontColor);
}


.wrap {
    display: flex;
    flex-flow: column nowrap;
    height: 100%;
    padding: 0;
    margin: 0;
}

/* main nav.side-nav .dropdown-menu {
    background-color: #16181d;
}

main nav.side-nav .dropdown-menu > li > a {
    padding-left: 51px;
} */


main .main-content {
  flex-grow: 1;
  overflow: hidden;
  display: flex;
  flex-flow: column nowrap;
}

iframe {
  flex-grow: 1;
  width: 100%;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--tableBorderRadius) var(--tableBorderRadius) 0 0;
    border: 1px solid #dfdfdf;
    overflow: hidden;
}

table .table-brand td:first-child {
    border-radius: var(--tableBorderRadius) var(--tableBorderRadius) 0 0;
}

.table-brand {
  background-color: var(--themeColor);
}

.table-hover>tbody>tr.table-brand:hover {
  background-color: var(--themeColor);
}

.table-brand td {
    text-align: left;
    color: #fff;
}

/* course.input ↓ */
table tr th,
table tr td {
    text-align: center;
}

button[type=submit],
button[type=submit]:hover,
button[type=button],
button[type=button]:hover {
  background-color: var(--themeColor);
  color: #fff;
}
/* course.input ↑ */
/* ****************************************************************************************** */
/* 面包屑导航 ↓ */
.breadcrumb {
  padding-left: 54px;
  /* box-shadow: 0 10px 8px -2px #ccc; */
  border-radius: 0;
  margin-bottom: 0;
  margin-top: -1px;
  z-index: 1;
}
/* 面包屑导航 ↑ */
/* ****************************************************************************************** */
/* 标签页导航 ↓ */
.top-tab-list {
  /* overflow: hidden; */
  position: relative;
  padding-left: 43px;
  margin-right: 43px;
}

/* .top-tab-list:hover .prev-arrow,
.top-tab-list:hover .next-arrow {
  opacity: 1;
} */

.nav-tabs {
  height: 0px;
  box-sizing: content-box;
  transition: transform .2s linear, height .3s;
  transform: matrix(1, 0, 0, 1, 0, 0);
  overflow: hidden;
}

.nav-tabs>li>a {
  border: 1px solid #ddd;
  margin-right: 0;
  color: var(--themeColor);
}

.nav-tabs>li.active>a,
.nav-tabs>li.active>a:focus,
.nav-tabs>li.active>a:hover {
  background-color: #f5f5f5;
  color: var(--themeHoverColor);
}

.nav-tabs>li.active {
  position: relative;
}

.nav-tabs>li.active:before {
  content: '';
  position: absolute;
  top: 1px;
  width: 100%;
  height: 4px;
  z-index: 1;
  border-radius: 4px 4px 0 0;
  background-color: var(--themeHoverColor);
}

/* .glyphicon-remove-sign:hover:before {
  content: '\e088';
  cursor: pointer;
} */

.prev-arrow, .next-arrow {
  display: none;
  position: absolute;
  text-align: center;
  color: var(--themeFontColor);
  width: 20px;
  height: 100%;
  cursor: pointer;
  z-index: 1;
  /* opacity: 0; */
  /* transition: opacity .3s; */
}

.prev-arrow i, .next-arrow i {
  vertical-align: -12px;
}

.prev-arrow {
  background-image: linear-gradient(to right, #fff, transparent);
  left: 43px;
}

.next-arrow {
  background-image: linear-gradient(to left, #fff, transparent);
  right: 0;
}

.delete-tab {
  position: absolute;
  top: -1px;
  right: -43px;
}

.delete-tab .glyphicon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 43px;
  height: 0px;
  background-color: var(--rectBtnColor);
  color: #fff;
  transition: height .3s;
}

.delete-tab .glyphicon + ul {
  left: -70px;
  min-width: 80px;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}

.delete-tab .glyphicon + ul button {
  text-decoration: none;
  color: var(--themeFontColor)

}

.delete-tab .glyphicon + ul li {
  padding-left: 14px;
  padding-right: 14px;
}

.delete-tab .glyphicon + ul li:hover {
  background-color: var(--sideBarActiveColor);
}

.delete-tab .glyphicon + ul li:hover button {
  color: #fff;
  outline: none;
}
/* 标签页导航 ↑ */
/* ****************************************************************************************** */
/* 登录模态框 ↓ */
.modal-dialog {
    transform: translate(0,-60%) !important;
    top: 50% !important;
}

.bs-modal-sm .modal-content {
    overflow: hidden;
    border: none;
}

.bs-modal-sm .modal-header {
    padding: 10px 15px;
    background-color: #222222;
    color: #fff;
}

.bs-modal-sm .modal-footer {
    padding: 10px 15px;
}

.bs-modal-sm .modal-footer button.btn-primary {
    background-color: #20222a;
    color: #fff;
    border: none;
}

/* 登录模态框 ↑ */
/* ****************************************************************************************** */
/* 侧边栏 ↓ */
.custom-tooltip {
  display: none;
  position: absolute;
  line-height: 40px;
  width: 72px;
  text-align: center;
  right: -84px;
  z-index: 3;
}

.custom-tooltip:after {
  content: '';
  position: absolute;
  top: 50%;
  left: -4px;
  margin-top: -5px;
  border-width: 5px 5px 5px 0;
  border-color: transparent var(--themeColor) transparent transparent;
  border-style: solid;
}

.tooltip-inner {
  padding: 0;
  background-color: var(--themeColor);
}

.caret {
  float: right;
  margin-top: 7px;
}

.sidebar-nav {
  width: 220px;
}

main #sidebar-wrapper {
  width: 220px;
  height: 100%;
  background-color: var(--themeColor);
  transition: width .3s;
}

main nav.side-nav {
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  border: none;
}

main nav.side-nav:after {
  content: '';
  display: block;
  position: absolute;
  width: 10px;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  box-shadow: -5px 0 5px -2px #000 inset;
  opacity: .3;
  /* background-color: red; */
}

main nav.side-nav ul {
  z-index: 2;
  /* overflow: hidden; */
}

.sidebar-nav .list-head {
  overflow: hidden;
  background-image: var(--navBarColor);
  background-color: var(--themeHoverColor);
  line-height: 40px;
  text-align: center;
  color: #fff;
  transition: line-height .3s;
}

.sidebar-nav .panel-title > a {
  display: block;
  text-decoration: none;
  color: var(--sideBarFontColor) !important;
}

.sidebar-nav .panel-title > a > i {
  width: 20px;
  text-align: center;
  margin-right: 6px;
  color: currentColor !important;
}

/* .sidebar-nav .panel-title {
  -webkit-user-modify: read-write;
  -moz-user-modify: read-write;
  -ms-user-modify: read-write;
  -o-user-modify: read-write;
  outline: none;
} */

/* .sidebar-nav .panel-title:focus > a {
  font-weight: bold;
  color: var(--themeFontColor);
} */

.panel-group .panel+.panel {
  margin: 0;
}

.panel-group .panel {
  border-radius: none;
  border-style: var(--sideBarBorderStyle);
}

.panel-default>.panel-heading {
  background-image: var(--sideBarItemColor);
  background-color: var(--sideBarItemColor);
  padding: 10px 12px;
}

.panel-body {
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  background-color: var(--themeHoverColor);
  border: none !important;
}

.panel-body .list-group-item {
  background-color: transparent;
  border-style: var(--sideBarBorderStyle);
  padding-left: 40px;
  padding-right: 15px;
}

.panel-body .list-group-item:hover {
  background-color: var(--sideBarActiveColor);
}

.panel-body .list-group-item a {
  text-decoration: none;
  display: block;
  color: var(--sideBarFontColor);
}

.panel-body .list-group-item a:hover {
  font-weight: bold;
  /* color: var(--sideBarFontColor); */
}
/* 侧边栏 ↑ */

.shadow-box {
  width: 100%;
  height: 15px;
  position: fixed;
  top: 0;
  box-shadow: 0 10px 10px -10px rgba(0, 0, 0, .5) inset;
}